package com.egghiro.framework.j2se.game.core.key;

import java.util.Queue;

import com.egghiro.framework.j2se.util.SLinkedList;

public class SKeyQueue {
    private Queue<SGameKeyCode> keyQueue = new SLinkedList<SGameKeyCode>();

    public boolean add(SGameKeyCode gameKeyCode) {
        return keyQueue.add(gameKeyCode);
    }

    // public SGameKeyCode peek() {
    // return this.keyQueue.peek();
    // }

    public SGameKeyCode poll() {
        return this.keyQueue.poll();
    }

    public boolean isEmpty() {
        return this.keyQueue.isEmpty();
    }

    public void clear() {
        this.keyQueue.clear();
    }

}
